package com.app.backend.base.serviceImpl;

import com.app.backend.base.dao.RoleDao;
import com.app.backend.base.entity.Role;
import com.app.backend.base.service.RoleService;
import com.app.backend.common.base.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @program: RoleServiceImpl
 * @description:
 * @author: Zhun.Xiao
 * @create: 2020-02-10 15:29
 **/

@Service
@Transactional(rollbackFor = Exception.class)
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleDao roleDao;

    @Override
    public BaseDao<Role, String> getRepository() {
        return roleDao;
    }
}